class Modify2TableAdherents < ActiveRecord::Migration
  def self.up
    remove_column :adherents, :nRue
    change_column :adherents, :telDomicilePersonneAPrevenir, :string, :limit => 10
    change_column :adherents, :telBureauPersonneAPrevenir, :string, :limit => 10
    change_column :adherents, :telPortablePersonneAPrevenir, :string, :limit => 10
    change_column :adherents, :cp, :string, :limit => 5
    change_column :adherents, :telDomicile, :string, :limit => 10
    change_column :adherents, :telPortable, :string, :limit => 10 
  end

  def self.down
    add_column :adherents, :nRue
  end
end
